home *** CD-ROM | disk | FTP | other *** search
/ PCNet 2006 April / PCnet 2006-06.4.iso / shareware / nmsetup.exe / WebServer / web / help.php < prev    next >
Encoding:
PHP Script  |  2006-05-01  |  5.2 KB  |  134 lines

  1. <?php
  2. ////////////////////////////////////////////////////////////////////////////////
  3. // <!--Copyright (c) 2005 Pure Networks Inc.  All rights reserved.-->
  4. ////////////////////////////////////////////////////////////////////////////////
  5. //
  6. // Build: 3.0.6121.0 (Stable)
  7. // $Revision: #2 $
  8. //
  9.  
  10.     $sNavLocation = "help";
  11.     require "_session_common.php";
  12.     // assign text for page title to the share name
  13.     $sLocation = "Shared Folders";
  14.     require "_header.php";
  15.     require "_glossary.php";
  16.  
  17.     //which help do we show?
  18.     $sGetVarPage = "home";
  19.     $sLinkSnippet = "#";
  20.     if (isset($_GET['page']))
  21.     {
  22.         // We have a QS value, is it valid?
  23.         switch($_GET['page'])
  24.         {
  25.             case "home":            
  26.             case "using":            
  27.             case "owner":
  28.             case "troubleshooting":
  29.             case "all":
  30.                 $sGetVarPage = $_GET['page'];
  31.                 $sLinkSnippet = "?page=";
  32.                 break;
  33.             default:
  34.                 // already defined the vars as defaults
  35.                 break;
  36.         }
  37.     }
  38.         
  39.     //FAQ Breadcrumbs (where are we?)
  40.     $sHelpBreadcrumbs = "<strong>Help</strong> - Click a topic or select from this page's <strong>View</strong> menu.";
  41. ?>
  42.     <table cellspacing="0" cellpadding="0" border="0" width="100%">
  43.         <tr>
  44.             <td width="100%" valign="top">
  45.                 <!-- Start Folder view table -->
  46.                     <table cellspacing="0" cellpadding="0" border="0" class="ContentTable"> 
  47.                         <tr>
  48.                             <td class="ContentTableTL"><div> </div></td>
  49.                             <td class="ContentTableTM2"><div class="Breadcrumbs ContentTableHeadLeft"><?php echo ($sHelpBreadcrumbs); ?></div></td>
  50.                                 <form method="get" name="viewhelp" id="viewhelp" action="/help">
  51.                             <td class="ContentTableTM3" >
  52.                             <nobr>
  53.                                 <div class="ContentTableHeadRight">
  54.                                 View:
  55.                                         <select name="page" onchange="document.getElementById('viewhelp').submit();">
  56.                                             <option value="home" <?php if ($sGetVarPage == "home") { echo (" selected"); } ?>>Help Home Page
  57.                                             <option value="all" <?php if ($sGetVarPage == "all") { echo (" selected"); } ?>>All Help topics
  58.                                             <option value="using" <?php if ($sGetVarPage == "using") { echo (" selected"); } ?>>Using this Web Site
  59.                                             <option value="owner" <?php if ($sGetVarPage == "owner") { echo (" selected"); } ?>>If This is Your <?php echo ($sProductNameInformal); ?> Web Site
  60.                                             <option value="troubleshooting" <?php if ($sGetVarPage == "troubleshooting") { echo (" selected"); } ?>>Frequently Asked Questions
  61.                                         </select>
  62.                                 </div>
  63.                             </nobr>
  64.                             </td>
  65.                                 </form>
  66.                             <td class="ContentTableTR"><div> </div></td>
  67.                         </tr>
  68.                         <tr>
  69.                             <td class="ContentTableML"><div> </div></td>
  70.                             <td class="ContentTableMM" colspan="2">
  71.                                 <div class="HelpContents">
  72. <?php // HELP HEADING AND TOP-OF-FILE ANCHOR ?>                    
  73.             
  74.                 <A NAME="#"></A> 
  75.  
  76.                                             
  77.                     
  78.         <?php
  79.         switch($_GET['page'])
  80.         {
  81.             case "home":
  82.                 echo ("<br/><br/>");
  83.                 require ("help_home.php");
  84.                 break;
  85.             case "using":
  86.                 echo ("<br/><br/>");
  87.                 require ("help_using.php");
  88.                 break;
  89.             case "owner":
  90.                 echo ("<br/><br/>");
  91.                 require ("help_owner.php");
  92.                 break;
  93.             case "troubleshooting":
  94.                 echo ("<br/><br/>");
  95.                 require ("help_troubleshooting.php");
  96.                 break;                
  97.             default:
  98.                 echo ("<br/><br/>");
  99.                 require ("help_using.php");
  100.                 echo ("<br/><br/>");
  101.                 require ("help_owner.php");
  102.                 echo ("<br/><br/>");
  103.                 require ("help_troubleshooting.php");
  104.                 echo ("<br/><br/>");
  105.         }
  106.     ?>
  107.                                 </div>
  108.                             </td>
  109.                             <td class="ContentTableMR"> </td>
  110.                         </tr>
  111.                         <tr>
  112.                             <td class="ContentTableBL"> </td>
  113.                             <td class="ContentTableBM" colspan="2"> </td>
  114.                             <td class="ContentTableBR"> </td>
  115.                         </tr>
  116.                     </table> <!-- End Folder View Table -->
  117.                 </td>
  118.                 <td valign="top">
  119.                 
  120. <?php   
  121. require "panels.php"; 
  122. ?>
  123.  
  124.                 </td>
  125.             </tr>
  126.         </table>
  127. <?php require "_footer.php"; ?>
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.